package com.smyh.bean;

public class RFDeviceInfo {

	/*
	 * 1-本地、2-终端、3-外设
	 */
	private int deviceType;
	/**
	 * 状态：设备处于什么状态
	 * 0-离线、1-上线
	 */
	private int status;
	private String addr;
	private boolean isSelect;
	//组地址

	public boolean isSelect() {
		return isSelect;
	}

	public void setSelect(boolean select) {
		isSelect = select;
	}

	private byte[] groupAddr;
	//线-相偏
	private byte linePhaseOff;
	
	private Long actionTime;
	private String content1;
	private String content2;
	private String content3;
	private String content4;
	private String content5;
	private String content6;
	private String content7;
	private String content8;
	
	public int getDeviceType() {
		return deviceType;
	}
	public void setDeviceType(int deviceType) {
		this.deviceType = deviceType;
	}
	
	public int getStatus() {
		return status;
	}
	public void setStatus(int status) {
		this.status = status;
	}
	public String getAddr() {
		return addr;
	}
	public void setAddr(String addr) {
		this.addr = addr;
	}
	
	public byte[] getGroupAddr() {
		return groupAddr;
	}
	public void setGroupAddr(byte[] groupAddr) {
		this.groupAddr = groupAddr;
	}
	public byte getLinePhaseOff() {
		return linePhaseOff;
	}
	public void setLinePhaseOff(byte linePhaseOff) {
		this.linePhaseOff = linePhaseOff;
	}
	public String getContent1() {
		return content1;
	}
	public void setContent1(String content1) {
		this.content1 = content1;
	}
	public String getContent2() {
		return content2;
	}
	public void setContent2(String content2) {
		this.content2 = content2;
	}
	public String getContent3() {
		return content3;
	}
	public void setContent3(String content3) {
		this.content3 = content3;
	}
	public String getContent4() {
		return content4;
	}
	public void setContent4(String content4) {
		this.content4 = content4;
	}
	public String getContent5() {
		return content5;
	}
	public void setContent5(String content5) {
		this.content5 = content5;
	}
	public String getContent6() {
		return content6;
	}
	public void setContent6(String content6) {
		this.content6 = content6;
	}
	public String getContent7() {
		return content7;
	}
	public void setContent7(String content7) {
		this.content7 = content7;
	}
	public String getContent8() {
		return content8;
	}
	public void setContent8(String content8) {
		this.content8 = content8;
	}
	
	public String getContent(int subType){
		String content = "";
		switch (subType) {
		case 1:{
			content = getContent1();
			break;
		}
			
		case 2:{
			content = getContent2();
			break;
		}
			
		case 3:{
			content = getContent3();
			break;
		}
			
		case 4:{
			content = getContent4();
			break;
		}
			
		case 5:{
			content = getContent5();
			break;
		}
			
		case 6:{
			content = getContent6();
			break;
		}
			
		case 7:{
			content = getContent7();
			break;
		}
			
		case 8:{
			content = getContent8();
			break;
		}
			

		default:
			break;
		}
		return content;
	}
	
	public void setContent(int subType,String content){
		switch (subType) {
		case 1:{
			setContent1(content);
			break;
		}
			
		case 2:{
			setContent2(content);
			break;
		}
			
		case 3:{
			setContent3(content);
			break;
		}
			
		case 4:{
			setContent4(content);
			break;
		}
			
		case 5:{
			setContent5(content);
			break;
		}
			
		case 6:{
			setContent6(content);
			break;
		}
			
		case 7:{
			setContent7(content);
			break;
		}
			
		case 8:{
			setContent8(content);
			break;
		}
			

		default:
			break;
		}
	}
	public void setActionTime(Long actionTime) {
		this.actionTime = actionTime;
	}
	public Long getActionTime() {
		return actionTime;
	}
	
	
}
